/*
 * @Author: huangpx
 * @Date: 2023-04-22 16:50:50
 * @LastEditors: huangpx
 * @LastEditTime: 2023-04-28 10:10:11
 * @Description: file content
 */
const Mock = require('mockjs');
Mock.mock(RegExp('/shareDeviceUrl'), {
  'code': 0,
  'data|10-20': [
    {
      'districtId|+1': 1,
      'tenantId|+1': 11,
      'districtName|1-5': '@cword',
      'parentId': 0,
      'districtNum|1': 1111,
      'parentIds': ',0,',
      'parentNames': ',@cword',
      'isCheck': 0
    }
  ]
});
Mock.mock(RegExp('/childDeviceUrl'), {
  'code': 0,
  'data|10-20': [
    {
      'districtId|+1': 1,
      'tenantId|+1': 11,
      'districtName': '@cword',
      'parentId': 0,
      'districtNum|1': 1111,
      'parentIds': ',0,',
      'parentNames': ',监控点4',
      'isCheck': 0
    }
  ]
});
Mock.mock(RegExp('getMenu'), {
  code: 0,
  data: [
    {
      'id': 1,
      'parentId': -1,
      'name': '4.0穿梭框',
      'children': [],
      'path': '/pro-custom-asyn-tree-transfer'
    },
    {
      'id': 2,
      'parentId': -1,
      'name': '3.0穿梭框',
      'children': [],
      'path': '/pro-asyn-tree-transfer'
    },
    {
      'id': 3,
      'parentId': -1,
      'name': '树',
      'memo': null,
      'children': [],
      'path': '/tree'
    },
    {
      'id': 4,
      'parentId': -1,
      'name': '虚拟树',
      'memo': null,
      'children': [],
      'path': '/tree-virtual'
    },
    /* {
        'id': 513,
        'parentId': 511,
        'name': '测试菜单13',
        'memo': null,
        'children': [],
        'path': '/test52' + Math.random() * 10
    }*/
    {
      'id': 5,
      'parentId': -1,
      'name': '测试菜单',
      'memo': null,
      'children': [
        {
          'id': 51,
          'parentId': 5,
          'name': '测试菜单1',
          'children': [
            {
              'id': 511,
              'parentId': 51,
              'name': '测试菜单1',
              'memo': null,
              'children': [],
              'path': '/test511'
            },
            {
              'id': 512,
              'parentId': 51,
              'name': '测试菜单2',
              'memo': null,
              'children': [],
              'path': '/test512'
            },
            {
              'id': 513,
              'parentId': 51,
              'name': '测试菜单3',
              'memo': null,
              'children': [],
              'path': '/test513'
            },
            {
              'id': 514,
              'parentId': 51,
              'name': '测试菜单4',
              'memo': null,
              'children': [],
              'path': '/test514'
            },
            {
              'id': 515,
              'parentId': 51,
              'name': '测试菜单5',
              'memo': null,
              'children': [],
              'path': '/test515'
            },
            {
              'id': 516,
              'parentId': 51,
              'name': '测试菜单6',
              'memo': null,
              'children': [],
              'path': '/test516'
            },
            {
              'id': 517,
              'parentId': 51,
              'name': '测试菜单7',
              'memo': null,
              'children': [],
              'path': '/test517'
            },
            {
              'id': 518,
              'parentId': 51,
              'name': '测试菜单8',
              'memo': null,
              'children': [],
              'path': '/test518'
            },
            {
              'id': 519,
              'parentId': 51,
              'name': '测试菜单9',
              'memo': null,
              'children': [],
              'path': '/test519'
            }, {
              'id': 520,
              'parentId': 51,
              'name': '测试菜单10',
              'memo': null,
              'children': [],
              'path': '/test520'
            },
            {
              'id': 521,
              'parentId': 51,
              'name': '测试菜单11',
              'memo': null,
              'children': [],
              'path': '/test521'
            },
            {
              'id': 522,
              'parentId': 51,
              'name': '测试菜单12',
              'memo': null,
              'children': [],
              'path': '/test522'
            }
          ],
          'path': '/test51'
        },
        {
          'id': 52,
          'parentId': 5,
          'name': '测试iframe',
          'memo': null,
          'meta': {
            'isIframe': true
          },
          'children': [],
          'path': 'http://www.baidu.com'
        }
      ],
      'path': '/test1'
    },
    {
      'id': 6,
      'parentId': -1,
      'name': '菜单',
      'memo': null,
      'children': [],

      'path': '/menu-main'
    }
  ]
});
